package com.dragon.pojo.contest;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ContestList {
    private Integer id;

    private String contestName;

    private Integer type; // 0-Public 1-Private

    private Integer status; // 0-未开始 1-进行中 2-已结束

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    private Integer problemTotal;

    private String creator;

}
